<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>订单详情</title>
  <meta name="renderer" content="webkit"/>
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
<body>
<p>订单详情</p>
<div>
  订单号：<p>{$order.order_sn}</p>
  订单金额：<p>{$order.final_amount}</p>
  下单时间：<p>{$order.addtime|date="Y-m-d H:i",###}</p>
  最新状态：<p>{if condition="$order.order_status eq 0"}待付款{elseif condition="$order.order_status eq 1" /}待发货{elseif condition="$order.order_status eq 2" /}待收货{else /}已收货{/if}</p>
</div>
<div>
  {foreach name="order_detail" item="vo"}
  商品名：<p>{$vo.name}</p>
  <img src="{$vo.logo}" width="40px;" height="40px;">
  购买数量：<p>{$vo.goods_num}</p>
  小计：<p>{$vo.final_amount}</p>
    <a href="{:url('UserRelateInfo/order_recommend')}?store_id={$order.store_id}&order_id={$order.id}&goods_id={$vo.goods_id}">评价</a>
  {/foreach}
</div>
<div>
    {if condition="$order.order_status neq 8"}
        {if condition="$order.order_status eq 0"}
        <a href="{:url('UserRelateInfo/pay_order')}">去支付</a>
        <a href="{:url('UserRelateInfo/cancel_order')}?order_id={$order.id}">取消</a>
        {elseif condition="$order.order_stataus eq 1" /}
        <a href="{:url('UserRelateInfo/cancel_order')}?order_id={$order.id}">取消</a>
        {elseif condition="($order.order_status gt 1) AND ($order.order_sattus lt 4)" /}
        <a href="#">确认收货</a>
        {elseif condition="$order.order_status eq 4" /}
        <!--<a href="{:url('UserRelateInfo/order_recommend')}?id={$order.id}">去评价</a>-->
        {/if}
    {else /}
        <a href="javascript:;">订单已取消</a>
    {/if}
  </div>
</body>
</html>